Integrand size = 16, antiderivative size = 65 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=-2 a b n x+2 b^2 n^2 x-\frac {2 b^2 n (d+e x) \log \left (c (d+e x)^n\right )}{e}+\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e} \]
Time = 0.01 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.91 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=\frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{e}-2 b n \left (a x-b n x+\frac {b (d+e x) \log \left (c (d+e x)^n\right )}{e}\right ) \]
((d + e*x)*(a + b*Log[c*(d + e*x)^n])^2)/e - 2*b*n*(a*x - b*n*x + (b*(d + e*x)*Log[c*(d + e*x)^n])/e)
Time = 0.21 (sec) , antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2836, 2733, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx\) |
\(\Big \downarrow \) 2836 |
\(\displaystyle \frac {\int \left (a+b \log \left (c (d+e x)^n\right )\right )^2d(d+e x)}{e}\) |
\(\Big \downarrow \) 2733 |
\(\displaystyle \frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2-2 b n \int \left (a+b \log \left (c (d+e x)^n\right )\right )d(d+e x)}{e}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(d+e x) \left (a+b \log \left (c (d+e x)^n\right )\right )^2-2 b n \left (a (d+e x)+b (d+e x) \log \left (c (d+e x)^n\right )-b n (d+e x)\right )}{e}\) |
((d + e*x)*(a + b*Log[c*(d + e*x)^n])^2 - 2*b*n*(a*(d + e*x) - b*n*(d + e* x) + b*(d + e*x)*Log[c*(d + e*x)^n]))/e
3.1.19.3.1 Defintions of rubi rules used
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.), x_Symbol] :> Simp[x*(a + b *Log[c*x^n])^p, x] - Simp[b*n*p Int[(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{a, b, c, n}, x] && GtQ[p, 0] && IntegerQ[2*p]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] : > Simp[1/e Subst[Int[(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{ a, b, c, d, e, n, p}, x]
Time = 0.35 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.71
method | result | size |
norman | \(\left (2 b^{2} n^{2}-2 a b n +a^{2}\right ) x +b^{2} x \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )^{2}+\left (-2 b^{2} n +2 a b \right ) x \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )+\frac {b^{2} d \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )^{2}}{e}+\frac {n \left (-2 b^{2} n d +2 a b d \right ) \ln \left (e x +d \right )}{e}\) | \(111\) |
default | \(a^{2} x +b^{2} x \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )^{2}+\frac {b^{2} d \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )^{2}}{e}+2 b^{2} n^{2} x -2 b^{2} n x \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )-\frac {2 n^{2} b^{2} d \ln \left (e x +d \right )}{e}+2 a b \ln \left (c \left (e x +d \right )^{n}\right ) x -2 a b n x +\frac {2 a b n d \ln \left (e x +d \right )}{e}\) | \(130\) |
parts | \(a^{2} x +b^{2} x \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )^{2}+\frac {b^{2} d \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )^{2}}{e}+2 b^{2} n^{2} x -2 b^{2} n x \ln \left (c \,{\mathrm e}^{n \ln \left (e x +d \right )}\right )-\frac {2 n^{2} b^{2} d \ln \left (e x +d \right )}{e}+2 a b \ln \left (c \left (e x +d \right )^{n}\right ) x -2 a b n x +\frac {2 a b n d \ln \left (e x +d \right )}{e}\) | \(130\) |
parallelrisch | \(\frac {x \ln \left (c \left (e x +d \right )^{n}\right )^{2} b^{2} d e n -2 x \ln \left (c \left (e x +d \right )^{n}\right ) b^{2} d e \,n^{2}+2 x \,b^{2} d e \,n^{3}+2 x \ln \left (c \left (e x +d \right )^{n}\right ) a b d e n -2 x a b d e \,n^{2}+\ln \left (c \left (e x +d \right )^{n}\right )^{2} b^{2} d^{2} n -2 \ln \left (c \left (e x +d \right )^{n}\right ) b^{2} d^{2} n^{2}+x \,a^{2} d e n +2 \ln \left (c \left (e x +d \right )^{n}\right ) a b \,d^{2} n}{e n d}\) | \(159\) |
risch | \(\text {Expression too large to display}\) | \(1125\) |
(2*b^2*n^2-2*a*b*n+a^2)*x+b^2*x*ln(c*exp(n*ln(e*x+d)))^2+(-2*b^2*n+2*a*b)* x*ln(c*exp(n*ln(e*x+d)))+b^2*d/e*ln(c*exp(n*ln(e*x+d)))^2+n*(-2*b^2*d*n+2* a*b*d)/e*ln(e*x+d)
Leaf count of result is larger than twice the leaf count of optimal. 140 vs. \(2 (65) = 130\).
Time = 0.30 (sec) , antiderivative size = 140, normalized size of antiderivative = 2.15 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=\frac {b^{2} e x \log \left (c\right )^{2} + {\left (b^{2} e n^{2} x + b^{2} d n^{2}\right )} \log \left (e x + d\right )^{2} - 2 \, {\left (b^{2} e n - a b e\right )} x \log \left (c\right ) + {\left (2 \, b^{2} e n^{2} - 2 \, a b e n + a^{2} e\right )} x - 2 \, {\left (b^{2} d n^{2} - a b d n + {\left (b^{2} e n^{2} - a b e n\right )} x - {\left (b^{2} e n x + b^{2} d n\right )} \log \left (c\right )\right )} \log \left (e x + d\right )}{e} \]
(b^2*e*x*log(c)^2 + (b^2*e*n^2*x + b^2*d*n^2)*log(e*x + d)^2 - 2*(b^2*e*n - a*b*e)*x*log(c) + (2*b^2*e*n^2 - 2*a*b*e*n + a^2*e)*x - 2*(b^2*d*n^2 - a *b*d*n + (b^2*e*n^2 - a*b*e*n)*x - (b^2*e*n*x + b^2*d*n)*log(c))*log(e*x + d))/e
Leaf count of result is larger than twice the leaf count of optimal. 146 vs. \(2 (63) = 126\).
Time = 0.27 (sec) , antiderivative size = 146, normalized size of antiderivative = 2.25 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=\begin {cases} a^{2} x + \frac {2 a b d \log {\left (c \left (d + e x\right )^{n} \right )}}{e} - 2 a b n x + 2 a b x \log {\left (c \left (d + e x\right )^{n} \right )} - \frac {2 b^{2} d n \log {\left (c \left (d + e x\right )^{n} \right )}}{e} + \frac {b^{2} d \log {\left (c \left (d + e x\right )^{n} \right )}^{2}}{e} + 2 b^{2} n^{2} x - 2 b^{2} n x \log {\left (c \left (d + e x\right )^{n} \right )} + b^{2} x \log {\left (c \left (d + e x\right )^{n} \right )}^{2} & \text {for}\: e \neq 0 \\x \left (a + b \log {\left (c d^{n} \right )}\right )^{2} & \text {otherwise} \end {cases} \]
Piecewise((a**2*x + 2*a*b*d*log(c*(d + e*x)**n)/e - 2*a*b*n*x + 2*a*b*x*lo g(c*(d + e*x)**n) - 2*b**2*d*n*log(c*(d + e*x)**n)/e + b**2*d*log(c*(d + e *x)**n)**2/e + 2*b**2*n**2*x - 2*b**2*n*x*log(c*(d + e*x)**n) + b**2*x*log (c*(d + e*x)**n)**2, Ne(e, 0)), (x*(a + b*log(c*d**n))**2, True))
Leaf count of result is larger than twice the leaf count of optimal. 131 vs. \(2 (65) = 130\).
Time = 0.20 (sec) , antiderivative size = 131, normalized size of antiderivative = 2.02 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=-2 \, a b e n {\left (\frac {x}{e} - \frac {d \log \left (e x + d\right )}{e^{2}}\right )} + b^{2} x \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + 2 \, a b x \log \left ({\left (e x + d\right )}^{n} c\right ) - {\left (2 \, e n {\left (\frac {x}{e} - \frac {d \log \left (e x + d\right )}{e^{2}}\right )} \log \left ({\left (e x + d\right )}^{n} c\right ) + \frac {{\left (d \log \left (e x + d\right )^{2} - 2 \, e x + 2 \, d \log \left (e x + d\right )\right )} n^{2}}{e}\right )} b^{2} + a^{2} x \]
-2*a*b*e*n*(x/e - d*log(e*x + d)/e^2) + b^2*x*log((e*x + d)^n*c)^2 + 2*a*b *x*log((e*x + d)^n*c) - (2*e*n*(x/e - d*log(e*x + d)/e^2)*log((e*x + d)^n* c) + (d*log(e*x + d)^2 - 2*e*x + 2*d*log(e*x + d))*n^2/e)*b^2 + a^2*x
Leaf count of result is larger than twice the leaf count of optimal. 174 vs. \(2 (65) = 130\).
Time = 0.30 (sec) , antiderivative size = 174, normalized size of antiderivative = 2.68 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=\frac {{\left (e x + d\right )} b^{2} n^{2} \log \left (e x + d\right )^{2}}{e} - \frac {2 \, {\left (e x + d\right )} b^{2} n^{2} \log \left (e x + d\right )}{e} + \frac {2 \, {\left (e x + d\right )} b^{2} n \log \left (e x + d\right ) \log \left (c\right )}{e} + \frac {2 \, {\left (e x + d\right )} b^{2} n^{2}}{e} + \frac {2 \, {\left (e x + d\right )} a b n \log \left (e x + d\right )}{e} - \frac {2 \, {\left (e x + d\right )} b^{2} n \log \left (c\right )}{e} + \frac {{\left (e x + d\right )} b^{2} \log \left (c\right )^{2}}{e} - \frac {2 \, {\left (e x + d\right )} a b n}{e} + \frac {2 \, {\left (e x + d\right )} a b \log \left (c\right )}{e} + \frac {{\left (e x + d\right )} a^{2}}{e} \]
(e*x + d)*b^2*n^2*log(e*x + d)^2/e - 2*(e*x + d)*b^2*n^2*log(e*x + d)/e + 2*(e*x + d)*b^2*n*log(e*x + d)*log(c)/e + 2*(e*x + d)*b^2*n^2/e + 2*(e*x + d)*a*b*n*log(e*x + d)/e - 2*(e*x + d)*b^2*n*log(c)/e + (e*x + d)*b^2*log( c)^2/e - 2*(e*x + d)*a*b*n/e + 2*(e*x + d)*a*b*log(c)/e + (e*x + d)*a^2/e
Time = 1.30 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.45 \[ \int \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \, dx=x\,\left (a^2-2\,a\,b\,n+2\,b^2\,n^2\right )+{\ln \left (c\,{\left (d+e\,x\right )}^n\right )}^2\,\left (b^2\,x+\frac {b^2\,d}{e}\right )-\frac {\ln \left (d+e\,x\right )\,\left (2\,b^2\,d\,n^2-2\,a\,b\,d\,n\right )}{e}+2\,b\,x\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\,\left (a-b\,n\right ) \]